package com.villaday.idf.model;

import java.util.List;

public class MessageTypesEntity {


    /**
     * code : 200
     * status : success
     * msg : success
     * body : [{"badge":1,"iconUrl":"https://img.villaday.com/wap/img/idf/notice.png","messageType":1,"messageTypeText":"系统通知","messages":[],"newMessage":{"content":"爱订房新版本v1.2.0已上线，立即更新体验\r\n1.更新消息\r\n2.优化动态\r\n3.新增目的地，搜索","createTime":"2017-01-01 00:00:00","extras":{"idfAppPage":"page/home","type":3},"id":"peOgdnw6BN","readState":0,"subTitle":"爱订房新版本v1.2.0已上线，立即更新体验","title":"版本更新"}}]
     */

    private String code;
    private String status;
    private String msg;
    private List<BodyEntity> body;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public List<BodyEntity> getBody() {
        return body;
    }

    public void setBody(List<BodyEntity> body) {
        this.body = body;
    }

    public static class BodyEntity {
        /**
         * badge : 1
         * iconUrl : https://img.villaday.com/wap/img/idf/notice.png
         * messageType : 1
         * messageTypeText : 系统通知
         * messages : []
         * newMessage : {"content":"爱订房新版本v1.2.0已上线，立即更新体验\r\n1.更新消息\r\n2.优化动态\r\n3.新增目的地，搜索","createTime":"2017-01-01 00:00:00","extras":{"idfAppPage":"page/home","type":3},"id":"peOgdnw6BN","readState":0,"subTitle":"爱订房新版本v1.2.0已上线，立即更新体验","title":"版本更新"}
         */

        private int badge;
        private String iconUrl;
        private int messageType;
        private String messageTypeText;
        private NewMessageEntity newMessage;
        private List<?> messages;
        private int type;



        public BodyEntity(int type) {
            this.type = type;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public int getBadge() {
            return badge;
        }

        public void setBadge(int badge) {
            this.badge = badge;
        }

        public String getIconUrl() {
            return iconUrl;
        }

        public void setIconUrl(String iconUrl) {
            this.iconUrl = iconUrl;
        }

        public int getMessageType() {
            return messageType;
        }

        public void setMessageType(int messageType) {
            this.messageType = messageType;
        }

        public String getMessageTypeText() {
            return messageTypeText;
        }

        public void setMessageTypeText(String messageTypeText) {
            this.messageTypeText = messageTypeText;
        }

        public NewMessageEntity getNewMessage() {
            return newMessage;
        }

        public void setNewMessage(NewMessageEntity newMessage) {
            this.newMessage = newMessage;
        }

        public List<?> getMessages() {
            return messages;
        }

        public void setMessages(List<?> messages) {
            this.messages = messages;
        }

        public static class NewMessageEntity {
            /**
             * content : 爱订房新版本v1.2.0已上线，立即更新体验
             1.更新消息
             2.优化动态
             3.新增目的地，搜索
             * createTime : 2017-01-01 00:00:00
             * extras : {"idfAppPage":"page/home","type":3}
             * id : peOgdnw6BN
             * readState : 0
             * subTitle : 爱订房新版本v1.2.0已上线，立即更新体验
             * title : 版本更新
             */

            private String content;
            private String createTime;
            private ExtrasEntity extras;
            private String id;
            private int readState;
            private String subTitle;
            private String title;
            private String createTimeText;

            public String getCreateTimeText() {
                return createTimeText;
            }

            public void setCreateTimeText(String createTimeText) {
                this.createTimeText = createTimeText;
            }

            public String getContent() {
                return content;
            }

            public void setContent(String content) {
                this.content = content;
            }

            public String getCreateTime() {
                return createTime;
            }

            public void setCreateTime(String createTime) {
                this.createTime = createTime;
            }

            public ExtrasEntity getExtras() {
                return extras;
            }

            public void setExtras(ExtrasEntity extras) {
                this.extras = extras;
            }

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public int getReadState() {
                return readState;
            }

            public void setReadState(int readState) {
                this.readState = readState;
            }

            public String getSubTitle() {
                return subTitle;
            }

            public void setSubTitle(String subTitle) {
                this.subTitle = subTitle;
            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public static class ExtrasEntity {
                /**
                 * idfAppPage : page/home
                 * type : 3
                 */

                private String idfAppPage;
                private int type;

                public String getIdfAppPage() {
                    return idfAppPage;
                }

                public void setIdfAppPage(String idfAppPage) {
                    this.idfAppPage = idfAppPage;
                }

                public int getType() {
                    return type;
                }

                public void setType(int type) {
                    this.type = type;
                }
            }
        }
    }
}
